.TH std::pmr::polymorphic_allocator::destroy 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::pmr::polymorphic_allocator::destroy \- std::pmr::polymorphic_allocator::destroy

.SH Synopsis
   template< class U >    \fI(since C++17)\fP
   void destroy( U* p );  (deprecated in C++20)
                          (undeprecated in C++26)

   Destroys the object pointed to by p, as if by calling p->~U().

.SH Parameters

   p - pointer to the object being destroyed

.SH Notes

   This function is deprecated via LWG issue 3036, because its functionality can be
   provided by the default implementation of std::allocator_traits::destroy and hence
   extraneous.

   This function is undeprecated via P2875R3.

.SH See also

   destroy  destructs an object stored in the allocated storage
   \fB[static]\fP \fI(function template)\fP
